<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />

<a href="${contextPath}/patient/show?id=${guiPatient.userId}">
	<div class="tile full-width ${guiPatient.male ? 'bg-lightBlue' : 'bg-lightPink'}">
		<div class="user-profile-image place-left">
			<s:if test="%{guiPatient.male}">
				<img class="list-icon bg-lightBlue" src="${contextPath}/img/icon/Man-128.png"/>
			</s:if>
			<s:elseif test="%{guiPatient.female}">
				<img class="list-icon bg-lightPink" src="${contextPath}/img/icon/Woman-128.png"/>
			</s:elseif>
		</div>
		<div class="user-profile-info-container">
			<div class="user-profile-info">
				<div class="subheader">${guiPatient.name}</div>
				<div class="subheader">
					${guiPatient.age} <span class="subheader-secondary">years old</span>
					<s:if test="%{guiPrescription != null}">
						<span class="subheader-secondary">(${guiPrescription.termString})</span>
					</s:if>
				</div>
			</div>
		</div>
	</div>
	<br clear="all"/>
</a>